package com.wu.database.lazy.starter.simple.event;


import com.wu.database.lazy.starter.simple.domain.SysRole;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;
import org.wu.framework.lazy.orm.database.sql.expand.database.persistence.event.OrmEvent;

@Slf4j
@Component
public class SysRoleOrmEvent extends OrmEvent<SysRole> {


    @Override
    public String getEventTable() {
        return "sys_role";
    }

    @Override
    public void insertEvent(SysRole sysRole) {
        log.info("insert:{}", sysRole);
    }

    @Override
    public void updateEvent(SysRole sysRole) {
        log.info("update:{}", sysRole);
    }

    @Override
    public void deleteEvent(SysRole sysRole) {
        log.info("delete:{}", sysRole);
    }
}